package com.bluej.redis.demo;

import java.util.Date;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class RedisReceive {
	static boolean  flag =true;
	/**
	 * @param args
	 * @throws InterruptedException 
	 */
	public static void main(String[] args) throws InterruptedException {
		ApplicationContext ac = new ClassPathXmlApplicationContext(new String[]{"springConfig.xml"});
		while(flag){
			System.out.println("----"+ new Date()+"----");
			Thread.sleep(5000);
		}

	}

}
